|
|
@@ -242,7 +242,7 @@ def clerk_sale_submit_api(request):
|
242
|
242
|
# 日销售员销量统计
|
243
|
243
|
sssi, _ = SaleclerkSaleStatisticInfo.objects.select_for_update().get_or_create(
|
244
|
244
|
brand_id=brand.brand_id,
|
245
|
|
- clerk_id=clerk.clerk,
|
|
245
|
+ clerk_id=clerk.clerk_id,
|
246
|
246
|
ymd=ymd,
|
247
|
247
|
)
|
248
|
248
|
sssi.distributor_id = distributor.distributor_id
|
|
|
@@ -253,7 +253,7 @@ def clerk_sale_submit_api(request):
|
253
|
253
|
# 月销售员销量统计
|
254
|
254
|
sssi, _ = SaleclerkSaleStatisticInfo.objects.select_for_update().get_or_create(
|
255
|
255
|
brand_id=brand.brand_id,
|
256
|
|
- clerk_id=clerk.clerk,
|
|
256
|
+ clerk_id=clerk.clerk_id,
|
257
|
257
|
ymd=ym,
|
258
|
258
|
)
|
259
|
259
|
sssi.distributor_id = distributor.distributor_id
|
|
|
@@ -264,7 +264,7 @@ def clerk_sale_submit_api(request):
|
264
|
264
|
# 年销售员销量统计
|
265
|
265
|
sssi, _ = SaleclerkSaleStatisticInfo.objects.select_for_update().get_or_create(
|
266
|
266
|
brand_id=brand.brand_id,
|
267
|
|
- clerk_id=clerk.clerk,
|
|
267
|
+ clerk_id=clerk.clerk_id,
|
268
|
268
|
ymd=y,
|
269
|
269
|
)
|
270
|
270
|
sssi.distributor_id = distributor.distributor_id
|